package logica.VO;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import logica.Escenario;
import logica.Jugador;

@XmlRootElement(name="VOPartida")
public class VOPartida {
	
	private int id;
	private VOEscenario escenario;
	private VOPlayer1 player1;
	private VOPlayer2 player2;
	private boolean pausa;
	private boolean terminada;
	private boolean hayError;
	private String msjError;

	public VOPartida() {
		
	}

	public VOPartida(int id, VOEscenario escenario, VOPlayer1 player1,
			VOPlayer2 player2, boolean pausa, boolean terminada,
			boolean hayError, String msjError) {
		super();
		this.id = id;
		this.escenario = escenario;
		this.player1 = player1;
		this.player2 = player2;
		this.pausa = pausa;
		this.terminada = terminada;
		this.hayError = hayError;
		this.msjError = msjError;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public VOEscenario getEscenario() {
		return escenario;
	}

	public void setEscenario(VOEscenario escenario) {
		this.escenario = escenario;
	}

	public VOPlayer1 getPlayer1() {
		return player1;
	}

	public void setPlayer1(VOPlayer1 player1) {
		this.player1 = player1;
	}

	public VOPlayer2 getPlayer2() {
		return player2;
	}

	public void setPlayer2(VOPlayer2 player2) {
		this.player2 = player2;
	}

	public boolean isPausa() {
		return pausa;
	}

	public void setPausa(boolean pausa) {
		this.pausa = pausa;
	}

	public boolean isTerminada() {
		return terminada;
	}

	public void setTerminada(boolean terminada) {
		this.terminada = terminada;
	}

	public boolean isHayError() {
		return hayError;
	}

	public void setHayError(boolean hayError) {
		this.hayError = hayError;
	}

	public String getMsjError() {
		return msjError;
	}

	public void setMsjError(String msjError) {
		this.msjError = msjError;
	}

}
